<?php

$curl = curl_init();
$user = "dvdgrana";
$pass = "TKMaria";
$action = "Entrar";
$postfields = "user=".$user."&pass=".$pass."&action=".$action;
curl_setopt($curl, CURLOPT_URL,
	'http://http://legendsf1.5forum.biz/login.forum');
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1); //por metodo post
//establece variables post
curl_setopt($curl, CURLOPT_POSTFIELDS, $postfields);
 //sigue los header("Location:")
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($curl);
curl_close($curl);
?>
    
?>
